package com.handsome.widgets;

import java.io.Serializable;
import java.util.List;

/**
 * BaseWidget
 *
 * @author Jiangda
 */
public class BaseWidget implements Serializable {

    private static final long serialVersionUID = 1L;
    private String id;
    private String name;
    private String value;
    private String rule;
    private String type;
    private Boolean readonly;
    private String label;
    private String placeholder;
    private List<?> items;

    @Override
    public String toString() {
        return "BaseWidget{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", value='" + value + '\'' +
                ", rule='" + rule + '\'' +
                ", type='" + type + '\'' +
                ", label=" + label +
                ", readonly=" + readonly +
                ", placeholder=" + placeholder +
                ", items=" + items +
                '}';
    }

    public Boolean getReadonly() {
        return readonly;
    }

    public void setReadonly(Boolean readonly) {
        this.readonly = readonly;
    }


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public void setPlaceholder(String placeholder) {
        this.placeholder = placeholder;
    }

    public String getPlaceholder() {
        return placeholder;
    }

    public List<?> getItems() {
        return items;
    }

    public void setItems(List<?> items) {
        this.items = items;
    }
}
